//-----------------------------------------------------------------------------
/// STATE_INIT (Implementation)
//-----------------------------------------------------------------------------
START_STATE_CODE( STATE_INIT )
{
    START_MESSAGE_HANDLER( MESSAGE_ENTER )
    {
		LoadData();
    }

    START_MESSAGE_HANDLER( MESSAGE_UPDATE )
    {
        SwitchState(STATE_LOGO);
    }

    START_MESSAGE_HANDLER( MESSAGE_PAINT )
    {

    }
    
    START_MESSAGE_HANDLER( MESSAGE_EXIT )
    {

    }    
}

static void LoadData()
{
	try
	{
		LoadPack("/EN");
		s_imgBackBuffer = Image.createImage("/logo.png");
		if(LoadFont("/font_small.bin","/char_map.ini") == false)
			System.out.println("!!!!!!!!!!!  ERROR: loading font");
	}
	catch(Exception ex){
	}
}

////////////////////////////////////////////////////////////
